using System.ComponentModel.DataAnnotations;

namespace UniversalAdmin.Application.DTOs;

public class CreateArticleCategoryDto
{
  [Required(ErrorMessage = "分类名称不能为空")]
  [StringLength(100, ErrorMessage = "名称最长100字符")]
  public string Name { get; set; } = null!;

  public string Description { get; set; } = string.Empty;

  public int? ParentId { get; set; }

  public int Sort { get; set; } = 0;

  public bool IsActive { get; set; } = true;
}